const fs = require('fs');

const data = "Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊\n";
let writeStream = fs.createWriteStream("output.txt");
for (let i = 0; i < 100; i++) {
    writeStream.write(data, "utf8");

}

writeStream.end();
writeStream.on("finish", function () {
    console.log("写入完成");
});

